using Engine;

namespace ConsoleApplication1
{

    class Program 
    {
        
        static void Test()
        {
            RWindow MainWindow = new RWindow();
            MainWindow.SetWindowSize(800,600);
            MainWindow.MoveToScreenCenter();
            MainWindow.SetWindowTitle("My Application");

            MainWindow.Show();

            RRectangleWidget Rect= new RRectangleWidget();

            SColor Color= new SColor();
            Color.R=1.5;
            Color.G=0.5;
            Color.B=0.0;
            Color.A=1.0;

            Rect.FillColor.Set(Color);

            MainWindow.GetRootWidget().AddSubWidget(Rect);
            
            Rect.Anchor.LeftReference.Set(MainWindow.GetRootWidget());
            Rect.Anchor.LeftOffset.Set(6.0);
        }
    }
}